<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
/*******basic*******/
if($_RQ['op']=='basic'){
	$item['shoplink']='jy_areashop/merchshop//onemerchid='.$merchid;
	$item['shoplink2']=custom_url('jy_areashop/merchshop//onemerchid='.$merchid,true);
	$item['mindex']='jy_areashop/mindex//onemerchid='.$merchid;
	$item['goods']='jy_areashop/goods.index//onemerchid='.$merchid;
	$item['groups']='jy_areashop/shop.groups//onemerchid='.$merchid;
	$item['cart']='jy_merch/member.cart//onemerchid='.$merchid;
	$item['member']='jy_areashop/member.index//onemerchid='.$merchid;
	$item['jy_merch3fee']='jy_merch3fee/index//onemerchid='.$merchid;
	$item['jy_creditshop']='jy_creditshop/merchshop//onemerchid='.$merchid;
	$return['item']=$item;
	$htmls=array(
		'type'=>'look',
		'desc'=>'入口链接',
		'look'=>array(
			array('type'=>'looklink','title'=>'多商户商城','name'=>'shoplink'),
			array('type'=>'ewm','title'=>'多商户商城','name'=>'shoplink2'),
			array('type'=>'looklink','title'=>'总部带货商城','name'=>'mindex'),
			array('type'=>'looklink','title'=>'商品列表','name'=>'goods'),
			array('type'=>'looklink','title'=>'商品分类','name'=>'groups'),
			array('type'=>'looklink','title'=>'购物车','name'=>'cart'),
			array('type'=>'looklink','title'=>'会员中心','name'=>'member'),
		),
	);
	$groupid=$merch['groupid'];
	if($groupid){
		$group=pdo_get('jy_merch_group',array('id'=>$groupid,'uniacid'=>$_SESSION['uniacid']),array('plugins','bankuai','menus'));	
		if(strpos($group['plugins'],';jy_merch3fee;') !== false){
			$htmls['look'][]=array('type'=>'looklink','title'=>'出局分销','name'=>'jy_merch3fee');
		}
		if(strpos($group['plugins'],';jy_creditshop;') !== false){
			$htmls['look'][]=array('type'=>'looklink','title'=>'多商户积分商城','name'=>'jy_creditshop');
		}
	}
	$return['htmls']=$htmls;
	exi($return);
}